// 统一封装接口方法
import axios from '../utils/request.js'

// 登录 - 登录接口
export const loginAPI = ({ mobile, code }) => axios({
  method: 'post',
  url: '/v1_0/authorizations',
  data: {
    mobile,
    code
  }
})
// 频道 - 获取所有频道
export const getAllChannelsAPI = () => axios({
  method: 'get',
  url: '/v1_0/channels'
})
